<%@page import="uniwill.user.UserManagerSpringHelper"%>
<%@page import="uniwill.user.UserManager"%>
<%@page import="uniwill.user.User"%>
<%@ page language="java" contentType="text/html; charset=EUC-KR"
	pageEncoding="EUC-KR"%>
<%
	request.setCharacterEncoding("euc-kr");
	String userId = request.getParameter("userId");
	String password = request.getParameter("password");
	String name = request.getParameter("name");
	String email = request.getParameter("email");

	User user = new User();
	user.setUserId(userId);
	user.setPassword(password);
	user.setName(name);
	user.setEmail(email);
	
	UserManager manager=
			UserManagerSpringHelper.getUserManager(getServletContext());
	try {
		manager.update(user);
		//forward(cf>redirection)
		RequestDispatcher dispatcher =request.getRequestDispatcher("user_view.jsp");
		dispatcher.forward(request, response);
	} catch (Exception e) {
		
		e.printStackTrace();
	}
%>









